feat(claude): add structured output support#709
feat(claude): add structured output support#709marwan38 wants to merge 1 commit intocloudwego:mainfrom
Conversation
7ea8ccb to
cce4365
Compare
| // ResponseFormat configures structured JSON output using a JSON schema. | ||
| type ResponseFormat struct { | ||
| // Schema is the JSON schema that the model's response must conform to. | ||
| Schema *jsonschema.Schema `json:"schema"` |
There was a problem hiding this comment.
I was hesitant on providing a wrapper for ResponseFormat, but this is consistent in how all the other models define it.
There was a problem hiding this comment.
I wasn't sure if example > readme.
I found the readme helpful on the documentation website when I initially started using eino.
examples/ are better for more complex use cases, and I don't think this is one.
cce4365 to
1b8f987
Compare
|
I need this feature. Thank you |
ba26990 to
b74103f
Compare
|
Sorry, not sure who I can tag @hi-pender. |
b74103f to
0ca1d91
Compare
|
Seems like Anthropics structured output API does not work like I expected. During agentic runs (ReAct), claude would ALWAYS short circuit and stop with or perhaps there's something wrong on my end.. |
0ca1d91 to
8311c67
Compare
8311c67 to
c75251f
Compare
What type of PR is this?
feat: claude structured json output
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: